package com.service;

import com.pojo.GroupOrder;
import com.util.ServerResponse;

/**
 * Created by Administrator on 2020/4/8 0008.
 */
public interface GroupOrderService extends BaseService<GroupOrder> {
    ServerResponse submitOrder(GroupOrder groupOrder);
    ServerResponse payOrder(Long orderNum);
    ServerResponse getByOrderNum(Long orderNum);
    ServerResponse cancelOrder(Long orderNum);
    ServerResponse scheduledCancel();
    /**
     * 获取订单
     * @param orderId
     * @return
     */
    public GroupOrder getOrderById(Long orderId);
    /**
     *
     * @Title: OrdersService.java
     * @Package com.sihai.service
     * @Description: 修改叮当状态，改为 支付成功，已付款; 同时新增支付流水
     * Copyright: Copyright (c) 2017
     * Company:FURUIBOKE.SCIENCE.AND.TECHNOLOGY
     *
     */
    public void updateOrderStatus(String orderId, String alpayFlowNum, String paidAmount);
    ServerResponse payOrder(GroupOrder groupOrder);
    ServerResponse getByUserId(Integer userId);
}
